<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://127.0.0.1/juanpi/Static/Home/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" href="http://127.0.0.1/juanpi/Static/Home/css/ord_cen.css" />
<title>用户中心-卷皮网</title>
</head>

<body>
<!--载入顶部-->
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 顶部开始 -->
<div id="toolbar">
	<!-- ****************登录/注册************** -->
	<div class="tool_r">
		    <?php if(isset($_SESSION['uid'])){ ?>
			<a href="<?php echo U('Member/index');?>"><?php echo $_SESSION['uname'];?></a><a href="<?php echo U('Index/out');?>">退出</a>
		<?php }else{ ?>
			<a href="<?php echo U('Login/index');?>">登录</a>
			<a href="<?php echo U('Register/index');?>">免费注册</a><span>|</span>
		<?php } ?>	
		<a href="<?php echo U('OrdCen/index');?>">我的订单</a>
		<a class="gouwu" href="<?php echo U('Shop/index');?>">
			<span class="gouwudai"></span>购物袋
			<span class="gouwuqiu">
				    <?php if($_SESSION['cart']){ ?>
				<?php echo $hd['session']['cart']['total_rows'];?>
				<?php }else{ ?>0<?php } ?>
			</span>
		</a><span>|</span>
		<a href="">联系客服</a>
	</div>
	<!-- ****************登录/注册************** -->
</div>
<!-- 顶部结束 -->

<!-- 头部开始 -->
<div id="header">
	<div id="top">
		<div class="logo">
			<a href="http://127.0.0.1/juanpi/index.php"></a>
		</div>
		<div class="center"></div>
	</div>
	
</div>
<!-- logo结束 -->

<!-- 导航开始 -->
<div id="mainNav">
	<div class="nav">
		<ul>
			<li class="first"><a href="javascript:;">我的卷皮</a></li>
			<li><a href="<?php echo U('Member/index');?>">账号设置</a></li>
			<!--<li><a href="">消息中心</a></li>-->
			<li class="ind">
			<a href="http://127.0.0.1/juanpi/index.php">卷皮首页>></a></li>
		</ul>
	</div>
</div>
<!-- 导航结束 -->



<!-- 个人信息开始 -->
<div id="info">
	<div class="info_l">
		<div class="order">我的订单</div>
		<div     <?php if($_GET['w']==0){ ?>class="one"<?php } ?>>
			<a class="list" href="<?php echo U('index',array('w'=>0));?>">全部订单&nbsp;
				<span     <?php if($_GET['w']==0){ ?>style="color: #fff;"<?php } ?> >
					    <?php if($order){ ?>
					<?php echo $count['allOrder'];?>
					<?php }else{ ?>0<?php } ?>
				</span>
			</a>
		</div>
		<div     <?php if($_GET['w']==1){ ?>class="one"<?php } ?>>
			<a class="list" href="<?php echo U('index',array('w'=>1));?>">待付款&nbsp;
				<span     <?php if($_GET['w']==1){ ?>style="color: #fff;"<?php } ?> >
					    <?php if($order){ ?>
					<?php echo $count['loadOrder'];?>
					<?php }else{ ?>0<?php } ?>
				</span>
			</a>
		</div>
		<div     <?php if($_GET['w']==2){ ?>class="one"<?php } ?>>
			<a class="list" href="<?php echo U('index',array('w'=>2));?>">运送中&nbsp;
				<span     <?php if($_GET['w']==2){ ?>style="color: #fff;"<?php } ?> >
					    <?php if($order){ ?>
					<?php echo $count['goOrder'];?>
					<?php }else{ ?>0<?php } ?>
				</span>
			</a>
		</div>
	</div>
	<div class="info_r">
		<div class="top">
			<div class="top_l">
				<a class="head" href="<?php echo U('Member/index');?>" style="background: url(http://127.0.0.1/juanpi/Static/Home/images/ph-layer.png) no-repeat;background-color: #F8285C;"></a>
			</div>
			<div class="top_r">
				<div class="li max"><span class="bg1"></span><a href="<?php echo U('Member/index');?>">基本资料</a></div>
				<div class="li max"><span class="bg2"></span><a href="<?php echo U('Member/index',array('w'=>1));?>">收获地址</a></div>
			</div>
		</div>
		<div class="con">
			<span>全部订单</span>
			（最近三个月订单）
			<a href="">查看所有订单>></a>
		</div>
		
		    <?php if($order){ ?>
		<?php foreach ($order as $k=>$v){?>
		<!--商品列表开始-->
		<div class="dianpu">
			<span><?php echo date('Y-m-d H:i:s',$v['time']);?></span>
			订单号：<span><?php echo $v['number'];?></span>
		</div>
		<table>
			<?php foreach ($v['list'] as $key=>$value){?>
			<tr class="tr">
				<td class="li1">
					<a href=""><img src="http://127.0.0.1/juanpi/<?php echo $value['img'];?>" alt="" /></a>
					<a href=""><?php echo $value['gname'];?></a><br /><br />
					规格：<?php echo $value['spec'];?>
				</td>
				
				    <?php if($key==0){ ?>
					<td class="li2" rowspan="">
						<i>￥</i><span><?php echo $value['total'];?></span>
					</td>
					<td class="li3" rowspan="">
						<?php echo $value['status'];?>
					</td>
					    <?php if($value['status']=='待付款'){ ?>
						<td class="li4" rowspan="">
							<a class="fukuan" href="<?php echo U('Order/pay',array('oid'=>$value['oid']));?>">去付款</a>
							<a class="quxiao" href="<?php echo U('delOrder',array('oid'=>$value['oid']));?>">取消订单</a>
						</td>
					<?php } ?>
					    <?php if($value['status']=='已付款' or $value['status']=='已发货'){ ?>
						<td class="li4" rowspan="">
							<a class="fukuan" href="javascript:;" style="background: #9CF800;">已付款</a>
							<a class="fukuan" href="<?php echo U('Sure',array('oid'=>$value['oid']));?>" style="background: #57C1FD;">确认收货</a>
						</td>
					<?php } ?>
					    <?php if($value['status']=='已收货'){ ?>
						<td class="li4" rowspan="">
							<a class="fukuan" href="javascript:;" style="background: #999;">交易完成</a>
						</td>
					<?php } ?>
				<?php } ?>
				<script type="text/javascript">
					$(function(){
						var leng = $('.tr').length;
						$('.li2').attr("rowspan",leng);
						$('.li3').attr("rowspan",leng);
						$('.li4').attr("rowspan",leng);
					})
				</script>
			</tr>
			<?php }?>
		</table>
		<!--商品列表结束-->
		<?php }?>
		<?php }else{ ?>
			<div class="bot">
				<div class="null">
					您的订单下还没有购买过的商品哦~
				</div>
				<div class="go">
					快来选购自己心仪的商品吧~<br />
				去<a href="">首页</a>看看
				</div>
			</div>
		<?php } ?>
		
	</div>
</div>
<!-- 个人信息分页结束 -->

<div id="hr"></div>

<!-- 底部开始 -->
<div id="bottom">
	<div class="bo_l">
		<img src="http://127.0.0.1/juanpi/Static/Home/images/jp-app-90.png" alt="" /><br />
		扫描二维码下载
	</div>
	<div class="bo_c">
		<ul>
     		<p>获取更新</p>
			<li>●&nbsp;<a href="">iPhone/Android</a></li>
			<li>●&nbsp;<a href="">卷皮QQ空间</a></li>
			<li>●&nbsp;<a href="">卷皮新浪微博</a></li>
			<li>●&nbsp;<a href="">开放API</a></li>
		</ul>
		<ul>
     		<p>商务合作</p>
			<li>●&nbsp;<a href="">卖家免费报名</a></li>
			<li>●&nbsp;<a href="">商务合作</a></li>
			<li>●&nbsp;<a href="">廉政邮箱</a></li>
			<li>●&nbsp;<a href="">lianzheng@juanpi.com</a></li>
		</ul>
		<ul>
     		<p>公司信息</p>
			<li>●&nbsp;<a href="">关于卷皮</a></li>
			<li>●&nbsp;<a href="">媒体报道</a></li>
			<li>●&nbsp;<a href="">诚聘英才</a></li>
			<li>●&nbsp;<a href="">校园大使招募</a></li>
		</ul>
		<ul>
     		<p>帮助中心</p>
			<li>●&nbsp;<a href="">新手上路</a></li>
			<li>●&nbsp;<a href="">积分攻略</a></li>
			<li>●&nbsp;<a href="">网站地图</a></li>
		</ul>
	</div>
	<div class="bo_r">
		<a href=""></a>
		<span>周一至周日<br />9:00-22:00</span>
	</div>
</div>
<!-- 友情链接 -->
<div id="flink">
	 友情链接：
    <a href="">国画</a>
    <a href="">齐家装修</a>
    <a href="">大朴网</a>
    <a href="">世界名表</a>
    <a href="">葡萄酒</a>
    <a href="">易登网</a>
    <a href="">普洱茶</a>
    <a href="">中关村商城</a>
    <a href="">品牌鞋</a>
    <a href="">乐蜂网优惠券</a>
    <a href="">精选折扣</a>
    <a href="">拍鞋网官网</a>
	<a class="more" href="">更多>></a>
</div>


<div id="copy">
	武汉奇米网络科技有限公司 鄂ICP备10209250号　　Copyright © 2010 -2015 JuanPi.com All Rights Reserved
</div>

<div id="safe">
	<a href=""><img src="http://127.0.0.1/juanpi/Static/Home/images/r_315online.gif" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/juanpi/Static/Home/images/r_cnnic.gif" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/juanpi/Static/Home/images/r_gongshang.gif" alt="" /></a>
	<a href=""><img src="http://127.0.0.1/juanpi/Static/Home/images/sm_124x47.png" alt="" /></a>
</div>
<!-- 底部结束 -->
</body>
</html>
